package edu.sctu.practice.class01.zhangwang.day2015_10_08.text07;

/**
 * Created by Z_W on 2015/10/9.
 */
public class ClassWuMingFen {
    private String theMa;
    private int quantity;
    private boolean likeSoup;

    public ClassWuMingFen(int quantity, boolean likeSoup, String theMa) {
        this.quantity = quantity;
        this.likeSoup = likeSoup;
        this.theMa = theMa;
    }

    public ClassWuMingFen(int quantity, String theMa) {
        this.quantity = quantity;
        this.theMa = theMa;
    }

    public ClassWuMingFen() {
    }

    public void check() {
        if (likeSoup) {
            System.out.println(theMa + "," + quantity + "量" + ",带汤。");
        } else {
            System.out.println(theMa + "," + quantity + "量" + ",不带汤。");
        }
    }

    public String getTheMa() {
        return theMa;
    }

    public void setTheMa(String theMa) {
        this.theMa = theMa;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public boolean isLikeSoup() {
        return likeSoup;
    }

    public void setLikeSoup(boolean likeSoup) {
        this.likeSoup = likeSoup;
    }
}
